package com.apexedu.eas.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * TSqlLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="TBL_SQL_LOG")

public class TSqlLog  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String uuid;
     private Long userId;
     private String startTime;
     private Long timeDiff;
     private String parameter;
     private String functionName;
     private String className;
     private String state;
     private String exceptionInfo;
     private String stackTrace;
     private String ip;
     private String sql;


    // Constructors

    /** default constructor */
    public TSqlLog() {
    }

	/** minimal constructor */
    public TSqlLog(String uuid) {
        this.uuid = uuid;
    }
    
    /** full constructor */
    public TSqlLog(String uuid, Long userId, String startTime, Long timeDiff, String parameter, String functionName, String className, String state, String exceptionInfo, String stackTrace, String ip) {
        this.uuid = uuid;
        this.userId = userId;
        this.startTime = startTime;
        this.timeDiff = timeDiff;
        this.parameter = parameter;
        this.functionName = functionName;
        this.className = className;
        this.state = state;
        this.exceptionInfo = exceptionInfo;
        this.stackTrace = stackTrace;
        this.ip = ip;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="UUID", unique=true, nullable=false, length=32)

    public String getUuid() {
        return this.uuid;
    }
    
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    
    @Column(name="USER_ID", precision=12, scale=0)

    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    @Column(name="START_TIME", length=30)

    public String getStartTime() {
        return this.startTime;
    }
    
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }
    
    @Column(name="TIME_DIFF", precision=10, scale=0)

    public Long getTimeDiff() {
        return this.timeDiff;
    }
    
    public void setTimeDiff(Long timeDiff) {
        this.timeDiff = timeDiff;
    }
    
    @Column(name="PARAMETER")

    public String getParameter() {
        return this.parameter;
    }
    
    public void setParameter(String parameter) {
        this.parameter = parameter;
    }
    
    @Column(name="F_NAME", length=70)
    public String getFunctionName() {
		return functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}
    
    @Column(name="CLASS_NAME", length=100)

    public String getClassName() {
        return this.className;
    }

	public void setClassName(String className) {
        this.className = className;
    }
    
    @Column(name="STATE", length=30)

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    
    @Column(name="EXCEPTION_INFO", length=2000)

    public String getExceptionInfo() {
        return this.exceptionInfo;
    }
    
    public void setExceptionInfo(String exceptionInfo) {
        this.exceptionInfo = exceptionInfo;
    }
    
    @Column(name="STACK_TRACE")

    public String getStackTrace() {
        return this.stackTrace;
    }
    
    public void setStackTrace(String stackTrace) {
        this.stackTrace = stackTrace;
    }
    
    @Column(name="IP", length=30)

    public String getIp() {
        return this.ip;
    }
    
    public void setIp(String ip) {
        this.ip = ip;
    }

    @Column(name="SQL", length=3500)
	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}
   








}